#ifndef __UTILS_H
#define __UTILS_H

#include <stdio.h>
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <algorithm>
#include <unistd.h>
#include <cmath>
#include <map>
#include <ctime>


#define LG_PATH "../info/login_info.txt"
#define STU_PATH "../info/student_info.txt"
#define SUB_PATH "../info/subject_info.txt"
#define LOG_PATH "../log/log.log"

void moveCursor(char direction,int m);
std::string readCommand();
void purifyCommand(std::string *command);
std::vector<std::string> split(std::string src, char c);
std::vector< std::vector<std::string> > readFile(std::string filename);

int isDigit(std::string str);

std::string getNowTime();

#endif 